package com.granada.common;

import com.granada.vo.resp.PageVO;

import java.util.List;

public interface CurdWithReturnAdd<T> {
    public Long add() throws Exception;
    public void update() throws Exception;
    public void delete() throws Exception;
    public void batchDelete() throws Exception;
    public T getOne() throws Exception;
    public T getSearchOne() throws Exception;
    public List<T> getAll() throws Exception;
    public List<T> getSearchAll() throws Exception;
    public PageVO<T> getList() throws Exception;
    public PageVO<T> getSearchList() throws Exception;
}
